<!DOCTYPE html>
<html>
<head>
    <title>维护页面</title>
    <script type="text/javascript">

        function refreshTable() {
            $("input[name=currentPage]").val(1);
            $("#search_xcQualified_table").ajaxSubmit({
                url: '${absoluteContextPath}/xc/xcQualified/ajaxList',
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        $("#tableContent").html(data.content.data);
                    } else {
                        $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                    }
                }
            });
        }


        $(function () {
            $("input[name=riqiStart]").focus(function () {
                WdatePicker({dateFmt: 'yyyy-MM-dd'});
            })
            $("input[name=riqiEnd]").focus(function () {
                WdatePicker({dateFmt: 'yyyy-MM-dd'});
            })
            $("div[class='tooltip fade top in']").hide();
        });

        function dorefreshcardtype(recordNo) {
            var data = {};
            data.recordNo = recordNo;
            var url = '${absoluteContextPath}/xc/xcTjmxb';
            url = url + "/dorefreshtj";
            $.ajax({
                url: url,
                type: 'post',
                data: data,
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        var pop_div = $('#myModal2');
                        pop_div.html(data.content.data);
                        pop_div.modal('show');
                    } else {
                        $.showMessage({parentId: "errorMessage", message: "数据加载异常！", type: "success"});
                    }
                }
            });
        }
        function goDetailInfo(recordNo) {
            var data = {};
            data.recordNo = null;
            $.ajax({
                url: "${absoluteContextPath}/xc/xcTjmxb/list",
                type: 'post',
                data: data,
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        var pop_div = $('#myModal');
                        pop_div.html(data.content.data);
                        pop_div.modal('show');
                    } else {
                        $.showMessage({parentId: "showMessage", message: "数据加载异常！", type: "success"});
                    }
                }
            });

        }
        function popExportExcel() {
            $("#search_xcQualified_table").attr('action', '${absoluteContextPath}/xc/xcQualified/export');
            $("#search_xcQualified_table").submit();
            $("#search_xcQualified_table").attr('action', '${absoluteContextPath}/xc/xcQualified/list');
        }

    </script>
</head>
<body>

<div class="breadcrumbs">
    <ol class="breadcrumb">
        <li><a href="${absoluteContextPath}/home"><i class="fa fa-home"></i>首页</a></li>
        <li><a href="#">现场</a></li>
        <li class="active">开单不合格明细</li>
    </ol>
</div>

<div class="main">
<!-- row -->
<div class="row">
<div class="col-md-12">
<section class="tile">
<!-- tile body -->
<div class="tile-body">
<div id="showMessage"><#include "../../message.ftl" /></div>
<div class="form-horizontal">
<form id="search_xcQualified_table" action="${absoluteContextPath}/xc/xcQualified/list" method="post">
<#--<input type="hidden" name="pageSize" value="${xcQualifiedsTable.page.pageSize}"/>-->
<input type="hidden" name="currentPage" value="${xcQualifiedsTable.page.currentPage}"/>


<div class="row">

    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">卡号</label>

        <div class="col-sm-8">
            <input class="form-control" name="cardId" value="${xcQualifiedParams.cardId!''}" placeholder="" type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">预约号</label>

        <div class="col-sm-8">
            <input class="form-control" name="bookId" value="${xcQualifiedParams.bookId!''}" placeholder="" type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">门诊ID</label>

        <div class="col-sm-8">
            <input class="form-control" name="serviceId" value="${xcQualifiedParams.serviceId!''}" placeholder=""
                   type="text">
        </div>
    </div>
</div>
<div class="row">
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">姓名</label>

        <div class="col-sm-8">
            <input class="form-control" name="customerName" value="${xcQualifiedParams.customerName!''}" placeholder=""
                   type="text">
        </div>
    </div>



<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">预约类型</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="boolType" value="${xcQualifiedParams.boolType!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
  <#--  <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">性别</label>

        <div class="col-sm-8">
            <input class="form-control" name="sex" value="${xcQualifiedParams.sex!''}" placeholder="" type="text">
        </div>
    </div>-->
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">年龄</label>

        <div class="col-sm-8">
            <input class="form-control" name="age" value="${xcQualifiedParams.age!''}" placeholder="" type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">----</label>
          <div class="col-sm-8">
            <input class="form-control" name="ageEnd" value="${xcQualifiedParams.ageEnd!''}" placeholder="" type="text">
        </div>
    </div>
</div>
<div class="row">
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">手机</label>

        <div class="col-sm-8">
            <input class="form-control" name="phone" value="${xcQualifiedParams.phone!''}" placeholder="" type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">身份证</label>

        <div class="col-sm-8">
            <input class="form-control" name="idCard" value="${xcQualifiedParams.idCard!''}" placeholder="" type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">健康管理</label>

        <div class="col-sm-8">
            <input class="form-control" name="healthManage" value="${xcQualifiedParams.healthManage!''}" placeholder=""
                   type="text">
        </div>
    </div>
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">所属团体</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="groups" value="${xcQualifiedParams.groups!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">预约所属团队</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="boolGroups" value="${xcQualifiedParams.boolGroups!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--</div>-->
<#--<div class="row">-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">部门</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="department" value="${xcQualifiedParams.department!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">收费标志</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="chargeLoge" value="${xcQualifiedParams.chargeLoge!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">体检标志</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="medicalLoge" value="${xcQualifiedParams.medicalLoge!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--</div>-->


<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">总检状态</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="checkStatus" value="${xcQualifiedParams.checkStatus!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">科室负责人</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="departmentHead" value="${xcQualifiedParams.departmentHead!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
</div>
<div class="row">

    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">操作员</label>

        <div class="col-sm-8">
            <input class="form-control" name="operator" value="${xcQualifiedParams.operator!''}" placeholder=""
                   type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">开单人</label>

        <div class="col-sm-8">
            <input class="form-control" name="person" value="${xcQualifiedParams.person!''}" placeholder="" type="text">
        </div>
    </div>
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">介绍人</label>

        <div class="col-sm-8">
            <input class="form-control" name="introduceName" value="${xcQualifiedParams.introduceName!''}"
                   placeholder="" type="text">
        </div>
    </div>
</div>



<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">健康自助测评</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="healthEvaluation" value="${xcQualifiedParams.healthEvaluation!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">金额</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="money" value="${xcQualifiedParams.money!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">减半金额</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="halfMoney" value="${xcQualifiedParams.halfMoney!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">备注</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="note" value="${xcQualifiedParams.note!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--</div>-->
<#--<div class="row">-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">信息采集人</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="information" value="${xcQualifiedParams.information!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">赠送基因</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="gene" value="${xcQualifiedParams.gene!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--<div class="form-group col-md-4">-->
<#--<label class="col-sm-4 control-label" for="exampleInputEmail2">基因介绍人</label>-->
<#--<div class="col-sm-8">-->
<#--<input class="form-control" name="geneIntroducer" value="${xcQualifiedParams.geneIntroducer!''}" placeholder="" type="text">-->
<#--</div>-->
<#--</div>-->
<#--</div>-->
<div class="row">
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">合并开单人</label>

        <div class="col-sm-8">
            <input class="form-control" name="openName" value="${xcQualifiedParams.openName!''}" placeholder=""
                   type="text">
        </div>
    </div>

    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">体检日期</label>

        <div class="col-sm-8">
            <input class="form-control" name="riqiStart" value="${xcQualifiedParams.riqiStart!''}" placeholder=""
                   type="text">
        </div>
    </div>


    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">----</label>

        <div class="col-sm-8">
            <input class="form-control" name="riqiEnd" value="${xcQualifiedParams.riqiEnd!''}" placeholder=""
                   type="text">
        </div>
    </div>
</div>
<div class="row">
    <div class="form-group col-md-4">
        <label class="col-sm-4 control-label" for="exampleInputEmail2">显示条数:</label>
        <div class="col-sm-8">
            <input class="form-control" name="pageSize" value="${xcQualifiedsTable.page.pageSize}"  placeholder="" type="text"/>
        </div>
    </div>

    <div class="form-group col-md-4">
        <label class="col-sm-4"></label>

        <div class="col-sm-8">
            <button type="button" class="btn btn-primary" onclick="refreshTable()">查询</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </div>
</div>
</form>
</div>
</div>
</section>
<section class="tile">
    <div class="tile-header">
        <h1>
            <button type="button" class="btn btn-green" onclick="popExportExcel();"><i class="fa fa-plus"></i><span class="margin-left-5">导出</span></button>
        </h1>
    </div>
    <div class="tile-body nopadding">
        <div class="table-responsive" id="tableContent">
        <#include "table.ftl"/>
        </div>
    </div>
</section>
</div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
</div>
</body>
</html>
